package com.iwayin.core.bo.answer;

import java.util.List;

import com.iwayin.core.dataobject.AnswerDO;
import com.iwayin.core.vo.AnswerVO;

public interface AnswerBO {
	/**
	 * @description 添加answer
	 * @author ZhangLei
	 * @param answer
	 */
	public void addAnswer(AnswerDO answer);
	/**
	 * @description 查询answer
	 * @author ZhangLei
	 * @param query
	 * @return
	 */
	public List<AnswerDO> findAnswers(AnswerDO query);
	
	/**
	 * 
	 * @param askId
	 * @return
	 */
	public List<AnswerDO> findAnswersByAskId(Long askId);
	
	public List<AnswerDO> findAnswers(AnswerDO query,Long userId);
	
	/**
	 * 查询ask收到的answers
	 * @param vote
	 * @return
	 */
	public List<AnswerVO> findAskReceivedAnswers(AnswerDO query,Long loginUserId);
}
